package java6681.lesson15.score;

public class Study6681 implements Averageable6681 {
    @Override
    public double average(double[] d) {
        double sum = 0.0;
        double fistend = 0.0;
        double aver = 0.0;
//        计算该班级的平均成绩
        for (int i = 0; i < d.length; i++) {
            sum += d[i];
            fistend++;
        }
        aver = sum / fistend;
        return aver;
    }
}
